<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../js/vue.js"></script>
<body>
    <div id="app">
        <h1>{{str}}</h1>
        <a v-bind:href="obj.url">{{obj.title}}</a>

        <img :src="imgs" alt="">
    </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                str:"学习vue两种模板语法",
                obj:{
                    title:"百度一下",
                    url:"https://www.baidu.com"
                },
                imgs:"./image/1.jpg"
            }
        })
    </script>
</body>
</html>